package com.xiashitech.interfaces.apiservice.dto.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SystemInfoRequest {
    //系统id
    private String id;
    //微服务id
    private String microServiceId;
    //当前系统的agent的状态，状态码如下：null 未部署；0 已部署未运行；1 运行中；2 旁路运行；3 在线诊断；
    private String host;
    private Integer agentStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date agentStatusCreate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date agentStatusUpdate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date agentStatusHeartBeat;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date searchStartDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date searchEndDate;
}
